home *** CD-ROM | disk | FTP | other *** search
/ PC Home 48 / Fun Clicp Art 5000.iso / r / mbm / 00793_SU-RN su.ls < prev    next >
Encoding:
Text File  |  1996-05-11  |  7.3 KB  |  184 lines

  1. on renseigne txt1, sty1, txt2, sty2, nCurs
  2.   set the textStyle of field "ZI4" to sty1
  3.   set the text of field "ZI4" to txt1
  4.   set the textStyle of field "ZI5" to "plain"
  5.   set the textStyle of field "ZI5" to sty2
  6.   set the text of field "ZI5" to txt2
  7.   curseur(nCurs)
  8. end
  9.  
  10. on exitFrame
  11.   global gLocLabel
  12.   go(label(gLocLabel))
  13. end
  14.  
  15. on idle
  16.   global gBarChron, gSurvolAct, gSurvolPrec, gListSuj, gMaxBoutons, gEtaSpir, gSujet0, g1erSprChr, g1erSprNav, g1erSprLoc, gListCod, gEtudAct, gEtatEtud, gMessDef1, gMessDef2, gMessSty1, gMessSty2, gSprVideo1, gActVideo1, gTraduit, gScopeSu, gPosVideo, gPosDebP, gPosDebS, gPosDebE, gPosFin
  17.   if not (the mouseDown) then
  18.     if (gScopeSu(GetCadence) = 1) and (gScopeSu(GetTime) >= (gPosFin - 3)) then
  19.       gScopeSu(SetTime, gPosDebE + gPosDebS + gPosDebP)
  20.     end if
  21.     set MsCast to the mouseCast
  22.     if MsCast > 0 then
  23.       if not gEtaSpir then
  24.         set gSurvolAct to 0
  25.         repeat with monSpr = g1erSprChr to gMaxBoutons
  26.           if rollOver(monSpr) and (the castNum of sprite monSpr <> 0) and the visible of sprite monSpr then
  27.             set gSurvolAct to monSpr
  28.             exit repeat
  29.           end if
  30.         end repeat
  31.         if gSurvolAct <> gSurvolPrec then
  32.           if gSurvolAct <> 0 then
  33.             if (gSurvolAct >= g1erSprChr) and (gSurvolAct <= (g1erSprChr + 9)) then
  34.               gBarChron(survol, gSurvolAct, the number of cast "ZI4")
  35.             end if
  36.             if gSurvolAct = g1erSprNav then
  37.               renseigne(getAt(gTraduit, 12), "bold", " ", gMessSty2, 7)
  38.             end if
  39.             if gSurvolAct = (g1erSprNav + 1) then
  40.               renseigne(getAt(gTraduit, 26) && getAt(gTraduit, 3), "bold", " ", gMessSty2, 7)
  41.             end if
  42.             if gSurvolAct = (g1erSprNav + 2) then
  43.               renseigne(getAt(gTraduit, 1) && getAt(gTraduit, 2) && getAt(gTraduit, 5), "bold", " ", gMessSty2, 7)
  44.             end if
  45.             if gSurvolAct = (g1erSprNav + 3) then
  46.               renseigne(getAt(gTraduit, 1) && getAt(gTraduit, 2) && getAt(gTraduit, 4), "bold", " ", gMessSty2, 7)
  47.             end if
  48.             if gSurvolAct = (g1erSprNav + 4) then
  49.               renseigne(getAt(gTraduit, 1) && getAt(gTraduit, 2) && getAt(gTraduit, 7), "bold", " ", gMessSty2, 7)
  50.             end if
  51.             if gSurvolAct = (g1erSprNav + 5) then
  52.               renseigne(getAt(gTraduit, 27), "bold", " ", gMessSty2, 1)
  53.             end if
  54.             if gSurvolAct = (g1erSprNav + 6) then
  55.               renseigne(getAt(gTraduit, 28), "bold", " ", "bold", 1)
  56.             end if
  57.             if (gSurvolAct >= (g1erSprLoc + 4)) and (gSurvolAct <= (g1erSprLoc + 5)) then
  58.               set monAct to word 1 of the name of cast MsCast
  59.               set monEtat to word 2 of the name of cast MsCast
  60.               set monTxt1 to " "
  61.               set monTxt2 to " "
  62.               set monCur to -1
  63.               if monEtat = "0" then
  64.                 set monTxt1 to getAt(gTraduit, 36)
  65.                 set monTxt2 to gSujet0(Le_Nom)
  66.                 set monCur to 7
  67.               else
  68.                 if monEtat = "1" then
  69.                   set monTxt1 to getAt(gTraduit, 37)
  70.                   set moncod to gSujet0(Le_NumPar)
  71.                   set monSuj to getAt(gListSuj, moncod)
  72.                   set monTxt2 to monSuj(Le_Nom)
  73.                   set monCur to 7
  74.                 else
  75.                   nothing()
  76.                 end if
  77.               end if
  78.               renseigne(monTxt1, "bold", monTxt2, "bold italic", monCur)
  79.             end if
  80.             if ((gSurvolAct >= g1erSprLoc) and (gSurvolAct <= (g1erSprLoc + 3))) or ((gSurvolAct >= (g1erSprLoc + 6)) and (gSurvolAct <= (g1erSprLoc + 9))) then
  81.               set monAct to char 3 to 4 of word 1 of the name of cast MsCast
  82.               set monTxt1 to " "
  83.               set monTxt2 to " "
  84.               set monCur to 1
  85.               if (monAct = "SU") or (monAct = "CO") or (monAct = "HI") or (monAct = "EN") then
  86.                 if gEtudAct = monAct then
  87.                   set monTxt1 to getAt(gTraduit, 40)
  88.                   set monCur to 7
  89.                 else
  90.                   set monTxt1 to getAt(gTraduit, 41)
  91.                 end if
  92.                 if monAct = "SU" then
  93.                   set monTxt2 to getAt(gTraduit, 32)
  94.                 end if
  95.                 if monAct = "CO" then
  96.                   set monTxt2 to getAt(gTraduit, 33)
  97.                 end if
  98.                 if monAct = "HI" then
  99.                   set monTxt2 to getAt(gTraduit, 34)
  100.                   set monCur to 7
  101.                 end if
  102.                 if monAct = "EN" then
  103.                   set monTxt2 to getAt(gTraduit, 35)
  104.                 end if
  105.               else
  106.                 if char 1 of gEtatEtud = char 1 of monAct then
  107.                   set monTxt1 to getAt(gTraduit, 42)
  108.                   set monCur to 7
  109.                 else
  110.                   if gEtatEtud = " " then
  111.                     set monTxt1 to gMessDef1
  112.                   else
  113.                     set monTxt1 to getAt(gTraduit, 43)
  114.                   end if
  115.                 end if
  116.                 if char 1 of monAct = "B" then
  117.                   set monTxt2 to getAt(gTraduit, 47)
  118.                   set monCur to 7
  119.                 end if
  120.                 if char 1 of monAct = "C" then
  121.                   set monTxt2 to getAt(gTraduit, 45)
  122.                   set monCur to 7
  123.                 end if
  124.                 if char 1 of monAct = "T" then
  125.                   set monTxt2 to getAt(gTraduit, 44)
  126.                 end if
  127.                 if char 1 of monAct = "S" then
  128.                   set monTxt2 to getAt(gTraduit, 46)
  129.                   set monCur to 7
  130.                 end if
  131.               end if
  132.               renseigne(monTxt1, "bold", monTxt2, "bold", monCur)
  133.             end if
  134.             if (gSurvolAct >= (g1erSprLoc + 10)) and (gSurvolAct <= (g1erSprLoc + 12)) then
  135.               set monTxt1 to " "
  136.               set monTxt2 to " "
  137.               set monCur to 1
  138.               set nomBt to word 1 of the name of cast MsCast
  139.               if nomBt = "BTPEJC" then
  140.                 set monTxt1 to getAt(gTraduit, 48)
  141.                 set monTxt2 to " "
  142.               end if
  143.               if nomBt = "BTPBOU" then
  144.                 set monTxt1 to gMessDef1
  145.                 set monTxt2 to getAt(gTraduit, 49)
  146.               end if
  147.               if nomBt = "BTPPOS" then
  148.                 set monTxt1 to gMessDef1
  149.                 set monTxt2 to getAt(gTraduit, 50)
  150.               end if
  151.               if nomBt = "BTGMOL" then
  152.                 set monTxt1 to gMessDef1
  153.                 set monTxt2 to getAt(gTraduit, 51)
  154.                 set monCur to 8
  155.               end if
  156.               renseigne(monTxt1, "bold", monTxt2, "bold", monCur)
  157.             end if
  158.           else
  159.             set monEpok to gSujet0(Le_Epoque)
  160.             gBarChron(fleche, 0, monEpok, 2)
  161.             gBarChron(fleche, 1, monEpok, 0)
  162.             renseigne(gMessDef1, gMessSty1, gMessDef2, gMessSty2, -1)
  163.           end if
  164.           set gSurvolPrec to gSurvolAct
  165.         end if
  166.       else
  167.         if (MsCast <> 0) and (MsCast <> -1) then
  168.           if the number of words in the name of cast MsCast = 2 then
  169.             if (word 2 of the name of cast MsCast = "1") or (word 2 of the name of cast MsCast = "0") then
  170.               curseur(1)
  171.             else
  172.               curseur(-1)
  173.             end if
  174.           else
  175.             curseur(-1)
  176.           end if
  177.         else
  178.           curseur(-1)
  179.         end if
  180.       end if
  181.     end if
  182.   end if
  183. end
  184.